<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\helpers\Url;

/* @var $this yii\web\View */
/* @var $searchModel backend\models\PreUserMessageSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = '留言管理';
$this->params['breadcrumbs'][] = $this->title;

?>

<div class="pre-admin-article-index">

   <div class="row">
         <div class="col-md-12">
         <h1 class="page-header">
              留言管理 <small>Message Management</small>
         </h1>
         </div>
  </div> 
   <ol class="breadcrumb">
  <li>留言管理</li>
  <li><a href=<?php echo  Url::to(['pre-user-message/index'])?>>留言列表</a></li>
</ol>
<div class="pre-user-message-index">

    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'Message_id',
            'uid',
            'Message_text:ntext',
            'Message_time',
            //'status',

            ['class' => 'yii\grid\ActionColumn','template' => '{view} {delete}'],
        ],
    ]); ?>
</div>
